package com.qianyu.mq.service;

import lombok.RequiredArgsConstructor;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;



@Component
@RequiredArgsConstructor
public class ActiveListener {

    @JmsListener(destination = "apply-account-queue", containerFactory = "jmsQueueListenerContainerFactory")
    public void receiveMsg(String text) {
        System.out.println("接收到消息 : "+text);
    }

}
